<?php

class CategoryManager extends BaseManager implements iManager {

	public function query() {
		$return = array();

		$query = "SELECT * FROM `product_category_tbl`";

		$this->db->query($query);

		$this->db->execute();

		while ($result = $this->db->getResultAssoc()) {
			$productCategory = new ProductCategory_Domain();
				
			$productCategory->setCategoryId($result['prod_category_id']);
			$productCategory->setCategoryName($result['category_name']);

			$return[] = $productCategory;
		}

		$this->result = $return;
	}

	public function add() {
	}

	public function update() {
	}

	public function delete() {
	}
}